feat(sleep): add DeepSeek Harness transcript source - #266
feat(sleep): add DeepSeek Harness transcript source#266Nuplum (45lab95) wants to merge 2 commits into
Conversation
|
Thanks for the narrowly scoped, read-only importer and privacy tests. The full suite passes here with the zstandard extra (1507 passed, 9 skipped), but checking the external format contract uncovered a current-version/stale-generation blocker at Current upstream DSH ( The importer only discovers I reproduced the latter offline with the PR's valid v0 fixture plus a neighboring Please select the highest canonical generation first and fail closed on unsupported generations. Then either support the currently released logical format through a validated codec/export boundary, or explicitly pin/document this as a legacy-v0-only source with a producer version and representative fixture. Please cover fresh v2-only sessions and coexisting v0/v1/v2 generations in tests. This is a concrete format-boundary issue; no DSH execution backend or paid-model experiment is needed. |
84d64ab to
2261581
Compare
|
Thanks for review. I addressed this by supporting the current v2 logical format rather than documenting DSH as a legacy-v0-only source. The importer now discovers canonical For v2, the reader now validates the published header boundary, including the required I added coverage for:
The reader remains a pure, read-only Python importer: it does not start DSH, require a DSH execution backend, or make provider calls. Validation run: |
|
Re-reviewed Local verification is 72 passed: the DSH suite plus independent supported-v2 / unknown-v3 checks. An important correction to my old review fixture: it used v2 to represent an unsupported future version. That assumption is obsolete now that this PR supports v2, so accepting the valid v2 file is correct. I updated the independent check to distinguish a supported current generation from an actually unsupported newer one; I did not interpret the old expectation as a new failure in your importer. Please update the PR description's format/validation summary to match the implemented v0/v1/v2 support and the highest-generation rejection/diagnostic behavior, alongside the already-added sanitized fixture. Keep the read-only/privacy and seeded-lineage/replacement-provenance regressions intact as the format evolves. The parser grew materially, so this focused contract result is not a claim of a complete safety audit of every new path. The original stale-generation reproduction is addressed; the exact-head official CI run still awaits maintainer approval, and final review remains before merge. |
feat(sleep): add DeepSeek Harness transcript source
Closes #225
Summary
Add a local, read-only DeepSeek Harness (DSH) transcript source for SkillOpt-Sleep.
The new explicit
--source dshconverts DSH JSONL sessions into the existingSessionDigestand mined-task pipeline. DSH is not added to--source auto,and this change does not add a DSH backend, plugin, or UI integration.
Changes
session.jsonl;session.jsonl.zstd;timestamps, and feedback-derived positive/negative signals.
attachments, feedback text, injected user-role context, subagent sessions,
and SkillOpt replay sessions.
be safely understood, without blocking other sessions.
Optional dependency
Add the optional extra:
zstandard is only needed to read DSH's default .jsonl.zstd session files.
It is not installed for users who do not use DSH, and uncompressed session.jsonl files remain readable without it.
Install with:
Validation